package com.woniu.aimd.service.impl;

import com.woniu.aimd.mapper.StudentFavoritesMapper;
import com.woniu.aimd.pojo.entity.StudentFavorites;
import com.woniu.aimd.service.StudentFavoritesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zcnovice
 * @data 2025/6/10 下午3:28
 */
@Service
public class StudentFavoritesServiceImpl implements StudentFavoritesService {
    @Autowired
    private StudentFavoritesMapper  studentFavoritesMapper;

    @Override
    public boolean insert(StudentFavorites studentFavorites) {
        return studentFavoritesMapper.insert(studentFavorites);
    }

    @Override
    public boolean delete(String id) {
        return studentFavoritesMapper.delete(id);
    }

    @Override
    public List<Integer> findByFavorites(StudentFavorites studentFavorites) {
        return studentFavoritesMapper.findByFavorites(studentFavorites);
    }
}
